import Mock from 'mockjs'
// 设置200-2000毫秒延时请求数据
Mock.setup({
  timeout: '200-2000'
})
// 接口拦截
//格式： Mock.mock( url, post/get , 返回的数据)；
// 
Mock.mock('/cemetery/test1', 'post', {
    data: {
        listArr: [
            {
                title: 'title',
                value: 'value',
                label: 'label',
            }
        ],
        page: 1
    },
    msg: '',
    flag: true
});
Mock.mock('/cemetery/test3', 'post', {
    data: [
        {
            num: 1,
            price: '2.00',
            desc: '描述信息',
            title: '商品标题',
            thumb: 'https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg',
        },
        {
            num: 1,
            price: '2.00',
            desc: '描述信息',
            title: '商品标题',
            thumb: 'https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg',
        }
        
    ],
    msg: '',
    flag: true
});
Mock.mock('/cemetery/test4', 'post', {
    data: [
        {
            thumb: 'https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg',
            name: '悼念厅1',
            time: '08:00-09:00',
            session: '1',
        },
        {
            thumb: 'https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg',
            name: '悼念厅2',
            time: '08:00-09:00',
            session: '1',
        },
        {
            thumb: 'https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg',
            name: '悼念厅2',
            time: '08:00-09:00',
            session: '1',
        },
        {
            thumb: 'https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg',
            name: '悼念厅2',
            time: '08:00-09:00',
            session: '1',
        },
        {
            thumb: 'https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg',
            name: '悼念厅2',
            time: '08:00-09:00',
            session: '1',
        },
    ],
    msg: '',
    flag: true
});
Mock.mock('/cemetery/test5', 'post', {
    data: [
            {
                title: '守灵预约',
                label: '2023-02-02',
            },
            {
                title: '告别预约',
                label: '2023-02-02',
            },
            {
                title: '遗体接运预约',
                label: '2023-02-02',
            }
    ],
    msg: '',
    flag: true
});
Mock.mock('/cemetery/test6', 'post', {
    data: [
           
    ],
    msg: '',
    flag: true
});
Mock.mock('/cemetery/test7', 'post', {
    data: {
        sh_ex1: '',
        phone: '',
        sh_ex2: '',
        sh_ex3: '',
        sh_ex4: '',
        sh_ex5: '',
        sh_ex35: '',
        sh_ex36: 'https://fastly.jsdelivr.net/npm/@vant/assets/sand.jpeg',
        sh_ex37: 'https://fastly.jsdelivr.net/npm/@vant/assets/sand.jpeg',
        sh_ex25: '',
        sh_dat2: '',
        sh_ex502: '',
        dataURL: '',
    },
    msg: '',
    flag: true
});
Mock.mock('/cemetery/test8', 'post', {
    data: {
        sh_ex1: '',
        phone: '',
        sh_ex2: '',
        sh_ex3: '',
        sh_ex4: '',
        sh_ex5: '',
        sh_ex35: '',
        sh_ex36: 'https://fastly.jsdelivr.net/npm/@vant/assets/sand.jpeg',
        sh_ex37: 'https://fastly.jsdelivr.net/npm/@vant/assets/sand.jpeg',
        sh_ex25: '',
        sh_dat2: '',
        sh_ex502: '',
        dataURL: '',
        sh_ex503: '',
        sh_ex504: '',
        sh_ex505: '',
    },
    msg: '',
    flag: true
});
Mock.mock('/cemetery/test9', 'post', {
    data: {
        sh_ex1: '',
        phone: '',
        sh_ex2: '',
        sh_ex3: '',
        sh_ex4: '',
        sh_ex5: '',
        sh_ex35: '',
        sh_ex36: 'https://fastly.jsdelivr.net/npm/@vant/assets/sand.jpeg',
        sh_ex37: 'https://fastly.jsdelivr.net/npm/@vant/assets/sand.jpeg',
        sh_ex25: '',
        sh_ex7: '',
        sh_dat2: '',
        sh_ex500: '',
        sh_ex501: '',
        sh_ex502: '',
        sh_ex503: '',
        dataURL: '',
    },
    msg: '',
    flag: true
});